package com.appspot.bibtable.model;

import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

import com.appspot.bibtable.model.annotation.AttributeValue;
import com.appspot.bibtable.model.annotation.Input;
import com.appspot.bibtable.model.annotation.Output;
import com.appspot.bibtable.model.annotation.Prototype;

@PersistenceCapable(detachable = "true")
@Prototype("article")
public class Article extends Reference
{
	@Persistent
	@Input(name = @AttributeValue(attribute = "journal", display = "Journal"))
	@Output
	private String journal;
	
	@Persistent
	@Input(name = @AttributeValue(attribute = "volume", display = "Volume"))
	@Output
	private String volume;

	@Persistent
	@Input(name = @AttributeValue(attribute = "page", display = "Page"))
	@Output
	private String page;

	@Persistent
	@Input(name = @AttributeValue(attribute = "doi", display = "DOI"), document = "Digital Object Identifier")
	@Output
	private String doi;

	public String getJournal()
	{
		return journal;
	}

	public void setJournal(String journal)
	{
		this.journal = journal;
	}

	public String getVolume()
	{
		return volume;
	}

	public void setVolume(String volume)
	{
		this.volume = volume;
	}

	public String getPage()
	{
		return page;
	}

	public void setPage(String page)
	{
		this.page = page;
	}

	public String getDoi()
	{
		return doi;
	}

	public void setDoi(String doi)
	{
		this.doi = doi;
	}
}
